{% extends 'page-builder-base.twig' %}
{% set bodyId = 'Home' %}
{% set bodyClasses = 'page-home' %}


{% block title %}
<title>{{siteTitle}} - {{title}}</title>
{% endblock %}


{% block mainnav %}
<li class="menu-item menu-home"><a class="active" href="#Home">Home</a></li>
<li class="menu-item menu-wine"><a href="#Our-Wine">Wine</a></li>	 
<li class="menu-item menu-people"><a href="#Our-People">People</a></li>
<li class="menu-item menu-story"><a href="#Our-Story">Story</a></li>
<li class="menu-item menu-vineyard"><a href="#Our-Vineyard">Vineyard</a></li>
<li class="menu-item menu-news"><a href="#News">News</a></li>
<li class="menu-item menu-contact"><a href="#Contact-Us">Contact us</a></li>			
{% endblock %}  






{% block content %}
	<section id="Home" class="section-home">
		<div class="feature">
		
			<img class="hero" src="/images/feature{{ random(range(1, 3)) }}.jpg" alt="The Kumeu Team" />			
			
			<div class="quotes cycle-slideshow" data-cycle-slides="> div" data-cycle-timeout="8000" data-cycle-pause-on-hover="true">
				{% set quos = app.generic.getAllActive("Quotation") %} 
				{% for itm in quos %}
				<div class="quote">
					<a {% if (itm.newsArticle !=null) %}href="/News-Archive/{{ itm.newsArticle.title|url_encode }}/"{% endif %}>
					<p>{% if (itm.content is empty) %}&nbsp;{% else %}{{ itm.content|raw }}{% endif %}</p>
					{% if itm.logo_id != '' %}
					<div class="quotation-img"><img src="/images/assets/{{ itm.logo_id }}/7/" alt="Publication logo" /></div>
					{% endif %}
					</a>
				</div>
				{% endfor %}
			</div>
			
		</div>
		
		
		<div class="content">
		    <div class="content-blocks">		
		    {% block contentBlocks %}
			    {% block pageheading %}
			    {% endblock %}
			{% endblock %}
		    </div>
		</div>
	</section><!-- #Home -->
	
	
	
	
	
	<div class="blocks">


	<section id="Our-Wine" class="section-wine">
	</section><!-- #Our Wines -->




	<section id="Our-People" class="section-people">
		
	</section><!-- #People -->








	<section id="Our-Story" class="section-story panel">
		
	</section><!-- #Our Story -->







	<section id="Our-Vineyard" class="section-vineyard">
		
	</section><!-- #Our Vineyard -->






	<section id="News" class="section-news">
		
	</section><!-- #News -->
	
	
	
	
	
	<section id="Contact-Us" class="section-contact">
		<div class="inner">
		<h1>Contact Us</h1>		
		
		<div class="blocks">
			<img class="hero" src="/images/assets/2306/9/" alt="" />
			 
			{% block contactForm %}
			    {% if formDescriptor is defined %}
			        {% if not formDescriptor.sent %}
			            <form method="post" {{ form_enctype(formDescriptor.form) }} class="contact-form" novalidate="" action="#Contact-Us">
			                {{ formDescriptor.formHeading|default()|raw}}
			            	
			            	<ul>
				                <li>
				                    {{ form_label(formDescriptor.form.name, label|default(null),{'label_attr':{'id':''}} ) }}
				                    {{ form_widget(formDescriptor.form.name,{'attr':{'class':''}}) }}
				                    {{ form_errors(formDescriptor.form.name) }}
				                </li>   
				                
				                <li>
				                    {{ form_label(formDescriptor.form.email, label|default(null),{'label_attr':{'id':''}} ) }}
				                    {{ form_widget(formDescriptor.form.email,{'attr':{'class':''}}) }}
				                    {{ form_errors(formDescriptor.form.email) }}
				                </li>   
				                
				                <li>
				                    {{ form_label(formDescriptor.form.message, label|default(null),{'label_attr':{'id':''}} ) }}
				                    {{ form_widget(formDescriptor.form.message,{'attr':{'class':''}}) }}
				                    {{ form_errors(formDescriptor.form.message) }}
				                </li>   
				                
				                <li{% if not form_errors(formDescriptor.form.antispam) %} class="visuallyhidden"{% endif %}>
				                     {{ form_label(formDescriptor.form.antispam, label|default(null),{'label_attr':{'id':''}} ) }}
				                     {{ form_widget(formDescriptor.form.antispam,{'attr':{'class':''}}) }}
				                     {{ form_errors(formDescriptor.form.antispam) }}
				                </li>

				                <li>     
				                  {{ form_widget(formDescriptor.form._token) }}
					                <input  type="submit" id="submit" name="submit" value="Send your enquiry &rsaquo;" class="button" />
				                </li>
			                </ul>
			            </form>
			        {% else %}
			            <div class="thankyou contact-form">
			            {{ formDescriptor.thankyouHeading|raw}}
			            </div>
			        {% endif %}
			    {% endif %}    
			{% endblock %}
			
			
			


		<div class="content-block id-2110">
			{% set snippet = app.snippets.getSnippetWithListLabel('Contact Us') %}
			{{snippet.content|raw}}
			
			<a href="/Newsletter/" class="modal fancybox.iframe">Sign up for our email newsletter &rsaquo;</a>
			

			<ul class="nav map-nav anchor-nav">
				<li><a href="#map">View map &rsaquo;</a></li>
			</ul>
		</div><!-- .content-block -->	
		</div><!-- .blocks -->
		
		
		</div><!-- .inner -->
	</section>
	
	
	<div id="map" class="map">
		<div id="map_canvas"></div>
	</div>



	
	
	
	
	</div>
{% endblock %}


{% block aside %}
{% endblock %}




{% block externalFoot %}
	{{ parent() }}
      
      <script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>	
      <script>window.onload=initialize(12);</script>
      
{% endblock %} 
